package com.zenglx.multilanguage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zenglx.multilanguage.annotation.MultiLanguage;
import com.zenglx.multilanguage.annotation.MultiLanguageField;
import lombok.Data;
import lombok.EqualsAndHashCode;


@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_user")
@MultiLanguage
public class User extends BaseDomain {

    @TableId(type= IdType.ASSIGN_ID)
    private Long id;

    @TableField
    @MultiLanguageField
    private String name;

    @TableField
    private int age;

}
